package com.csu.jpetstore_cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 
 * @TableName merchant
 */
@TableName(value ="merchant")
@Data
public class Merchant implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "merchant_account")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 
     */
    @TableField(value = "password")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 
     */
    @TableField(value = "name")
    @NotBlank(message = "商店名不能为空")
    private String name;

    /**
     * 
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 
     */
    @TableField(value = "address")
    @NotBlank(message = "地址不能为空")
    private String address;

    /**
     * 
     */
    @TableField(value = "phone")
    @NotBlank(message = "电话不能为空")
    private String phone;

    /**
     * 
     */
    @TableField(value = "accountStatus")
    private String Status;

    /**
     * 
     */
    @TableField(value = "isAdmin")
    private Boolean isAdmin;

    /**
     * 
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 
     */
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}